﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.IconAttribute
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System;
using System.Diagnostics;

#nullable disable
namespace UnityEngine
{
  /// <summary>
  ///   <para>Attribute to specify an icon for a MonoBehaviour or ScriptableObject.</para>
  /// </summary>
  [Conditional("UNITY_EDITOR")]
  [AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
  public class IconAttribute : Attribute
  {
    private string m_IconPath;

    /// <summary>
    ///   <para>A project-relative path to a texture.</para>
    /// </summary>
    public string path => this.m_IconPath;

    private IconAttribute()
    {
    }

    /// <summary>
    ///   <para>Create an IconAttribute with a path to an icon.</para>
    /// </summary>
    /// <param name="path">A project-relative path to a texture.</param>
    public IconAttribute(string path) => this.m_IconPath = path;
  }
}
